#!/bin/sh

# Copyright(c) 2011 OpenDomo Services SL. Licensed under GPL v3 or later

# setuptools need to be installed
#sudo apt-get install python-setuptools

cd opendomo-plugin
export PYTHONPATH=$PWD:$PYTHONPATH
python setup.py bdist_egg
cd ..
exit 0
# Installing plugin
mkdir $HOME/.moovida/plugins 2> /dev/null
cp opendomo-plugin/dist/elisa_plugin_opendomo-0.1-py2.6.egg $HOME/.moovida/plugins
# Specify the agent IP
sudo mkdir /etc/opendomo 2> /dev/null
sudo cp etc/opendomo/od-moovida-plugin.conf /etc/opendomo/od-moovida-plugin.conf
scp opendomo-plugin/dist/elisa_plugin_opendomo-0.1-py2.6.egg skarvin@192.168.2.101:.moovida/plugins
